Tripzzy\Core\Cart A

Total Complexity 56
Dependencies 8
Dependents 4
Total lines 592
Lines of code 239
Logical lines of code 133
Comment lines 267
Methods 34
Properties 6

Methods 34

Method Rating Maintainability Complexity Lines of code
add()
A
40 7 64
calculate_totals()
S
51 5 26
get_totals()
S
68 4 7
remove()
S
59 3 15
generate_cart_id()
S
63 3 10
empty_cart()
S
61 2 13
get_cart_item()
S
78 2 3
get_cart()
S
71 2 6
update_coupon_uses()
S
64 2 10
get_cart_hash()
S
71 2 5
set_subtotal()
S
80 1 3
get_customer()
S
81 1 3
is_empty()
S
79 1 3
reset_totals()
S
75 1 4
set_total()
S
80 1 3
set_discount_total()
S
80 1 3
set_subtotal_tax()
S
80 1 3
__construct()
S
63 1 10
set_totals()
S
79 1 3
cart_type()
S
78 1 3
set_applied_coupons()
S
80 1 3
set_removed_cart_contents()
S
80 1 3
set_cart_contents()
S
80 1 3
get_total()
S
78 1 3
get_net_total()
S
78 1 3
get_tax_total()
S
78 1 3
get_sub_total()
S
78 1 3
get_discount_total()
S
78 1 3
get_gross_total()
S
78 1 3
get_applied_coupons()
S
81 1 3
get_removed_cart_contents()
S
81 1 3
get_cart_contents()
S
78 1 3
use_default_cart()
S
80 1 3
set_coupon_discount_tax_totals()
S
80 1 3